package zb.WX.util;

public class GlobalVar {
    //appID
    public static final String APPID = "wx5aecb3da813b81d7";
    //public static final String APPID = "wx7fd8931d95e666e6";
    //appsecret
    public static final String APPSECRET = "1c93be387199ecfcc5823bfeedcebecb";
    //public static final String APPSECRET = "4a35cb0a55edfcc6906fc6aa889831e9";
    //token
    public static final String TOKEN = "zhangbin";
    //express_in (access_token有效时间,单位：s)
    public static final int EXPIRES_IN = 7200;

    //关注EVENT
    public static final String EVENT_SUBSCRIBE = "subscribe";
    //取消关注EVENT
    public static final String EVENT_UNSUBSCRIBE = "unsubscribe";
    //f:type="click" r:Event=CLICK
    public static final String EVENT_CLICK = "CLICK";
    //文本消息
    public static final String TEXT = "text";
    //图文消息
    public static final String NEWS = "news";
    //回复类文本消息模板
    public static final String REPLYMSG = PropertiesUtil.getPropValue("title") +
            "\n" + PropertiesUtil.getPropValue("1") +
            "\n" + PropertiesUtil.getPropValue("2") +
            "\n" + PropertiesUtil.getPropValue("3") +
            "\n" + PropertiesUtil.getPropValue("4") +
            "\n" + PropertiesUtil.getPropValue("5") +
            "\n" + PropertiesUtil.getPropValue("6");

    //获取access_token接口
    public static final String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";
    //创建自定义菜单接口
    public static final String GENERALMENU = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN";
    //创建个性化菜单接口
    public static final String SPECIALMENU = "https://api.weixin.qq.com/cgi-bin/menu/addconditional?access_token=ACCESS_TOKEN";
    //删除个性化菜单接口
    public static final String DELETESPECIALMENU = "https://api.weixin.qq.com/cgi-bin/menu/delconditional?access_token=ACCESS_TOKEN";
    //查询所有菜单接口
    public static final String QUERYMENU = "https://api.weixin.qq.com/cgi-bin/menu/get?access_token=ACCESS_TOKEN";
    //删除所有菜单
    public static final String DELETEMENU = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=ACCESS_TOKEN";

    //创建标签接口
    public static final String CREATE_TAG = "https://api.weixin.qq.com/cgi-bin/tags/create?access_token=ACCESS_TOKEN";
    //查询标签接口
    public static final String QUERY_TAG = "https://api.weixin.qq.com/cgi-bin/tags/get?access_token=ACCESS_TOKEN";
    //编辑标签接口
    public static final String UPDATE_TAG = "https://api.weixin.qq.com/cgi-bin/tags/update?access_token=ACCESS_TOKEN";
    //删除标签接口
    public static final String DELETE_TAG = "https://api.weixin.qq.com/cgi-bin/tags/delete?access_token=ACCESS_TOKEN";
    //获取标签下的粉丝列表
    public static final String GET_TAG_FANS = "https://api.weixin.qq.com/cgi-bin/user/tag/get?access_token=ACCESS_TOKEN";
    //批量为粉丝打标签接口
    public static final String SET_TAG_FANS = "https://api.weixin.qq.com/cgi-bin/tags/members/batchtagging?access_token=ACCESS_TOKEN";
    //批量为粉丝取消标签接口
    public static final String CANCLE_TAG_FANS = "https://api.weixin.qq.com/cgi-bin/tags/members/batchuntagging?access_token=ACCESS_TOKEN";
    //查询单个粉丝身上的标签接口
    public static final String QUERY_TAG_WITH_USER = "https://api.weixin.qq.com/cgi-bin/tags/getidlist?access_token=ACCESS_TOKEN";
    //设置粉丝备注名接口
    public static final String SET_FANS_REMARK = "https://api.weixin.qq.com/cgi-bin/user/info/updateremark?access_token=ACCESS_TOKEN";

    //拉取单个用户的基本信息
    public static final String GET_SINGLE_USER_INFO = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";
    //批量拉取用户的基本信息
    public static final String GET_MORE_USER_INFO = "https://api.weixin.qq.com/cgi-bin/user/info/batchget?access_token=ACCESS_TOKEN";

    //获取用户列表接口
    public static final String GET_USER_LIST = "https://api.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN";
    //分次获取用户列表接口
    public static final String GET_USER_LIST_NEXT = "https://api.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN&next_openid=NEXT_OPENID";

    //拉黑用户接口
    public static final String SET_BLACK_LIST = "https://api.weixin.qq.com/cgi-bin/tags/members/batchblacklist?access_token=ACCESS_TOKEN";
    //获取黑名单接口
    public static final String GET_BLACK_LIST = "https://api.weixin.qq.com/cgi-bin/tags/members/getblacklist?access_token=ACCESS_TOKEN";
    //取消拉黑的用户
    public static final String CANCLE_BLACK_LIST = "https://api.weixin.qq.com/cgi-bin/tags/members/batchunblacklist?access_token=ACCESS_TOKEN";

    //生成临时二维码ticket接口
    public static final String TRANSITORY_QRCODE = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=ACCESS_TOKEN";
    //生成永久二维码ticket接口
    public static final String PERMANENT_QRCODE = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=ACCESS_TOKEN";
    //换取二维码接口
    public static final String GET_QRCODE = "https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=TICKET";

    //长链接转短链接接口
    public static final String GET_SHORT_URL = "https://api.weixin.qq.com/cgi-bin/shorturl?access_token=ACCESS_TOKEN";
    //长链接转短链接action
    public static final String LONG_TO_SHORT = "long2short";

    //用户授权地址接口
    public static final String AUTHORIZE_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect";

    //用户授权回调重定向地址接口
    public static final String REDIRECT_URI = "https://www.zhangbin.xin/wxOAuth/target.zb";
    //静默授权的scope
    public static final String SNSAPI_BASE = "snsapi_base";
    //用户主动授权的scope
    public static final String SNSAPI_USERINFO = "snsapi_userinfo";
    //网页code换取access_token接口
    public static final String ACCESS_TOKEN_WEB = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
    //网页拉取用户信息接口
    public static final String USER_INFO_WEB = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";
    //刷新网页access_token接口
    public static final String REFRESH_ACCESS_TOKEN = "https://api.weixin.qq.com/sns/oauth2/refresh_token?appid=APPID&grant_type=refresh_token&refresh_token=REFRESH_TOKEN";

    //获取jsapi_ticket接口
    public static final String JSAPI_TICKET = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";


    //获取临时素材接口
    public static final String TEMPORARY_MATERIAL = "https://api.weixin.qq.com/cgi-bin/media/get?access_token=ACCESS_TOKEN&media_id=MEDIA_ID";
}
